<?php
session_start();
?>
<?php
require "lib/db.php";
require "lib/subcategory-function.php";

if(isset($_GET['subcategoryid'])){
	$subCategoryID = $_GET['subcategoryid'];
	settype($subCategoryID,"int");
	deleteSubCategory($subCategoryID);
	header("location:list-subcategory.php");
}
?>